package com.ankicoo;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.RestController;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * Description: 启动类(此启动类仅供身份验证模块测试 启动项目请启动其他启动类Application)
 *
 * @author : QCYANG
 * @date : 2021/1/8 17:28
 */
@RestController
@MapperScan("com.ankicoo.auth.mapper")
public class AuthApplication {
  //标注一个类是配置类，spring boot在扫到这个注解时自动加载这个类相关的功能，比如前面的文章中介绍的配置AOP和拦截器时加在类上的Configuration
  //扫描组件 @ComponentScan(value = "com.spring.boot.controller") 配置扫描组件的路径

  /**
   * run
   */
  public static void main(String[] args) {
    SpringApplication.run(AuthApplication.class, args);
  }


}
